/*
 * ComandoDeslogarCliente.java
 *
 * Created on 8 de Janeiro de 2008, 18:39
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package br.uff.javabasico.comandos;

import br.uff.javabasico.exception.ExcecaoComando;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

/**
 *
 * @author HelioKann
 */
public class ComandoDeslogarCliente implements Comando{
    
    /** Creates a new instance of ComandoDeslogarCliente */
    public ComandoDeslogarCliente() {
    }

    public String executar(HttpServletRequest req) throws ExcecaoComando {
        HttpSession sessao = req.getSession();
        sessao.removeAttribute("cliente");
        return "";
    }
    
}
